<?php
/* @var $this GenreController */
/* @var $model Genre */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'genre-form',
        'enableAjaxValidation' => false,
            ));
    ?>

    <p class="note"><?php echo Yii::t('default', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('default', 'are required'); ?>.</p>

        <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'name'); ?>
<?php echo $form->textField($model, 'name', array('size' => 20, 'maxlength' => 255)); ?>
<?php echo $form->error($model, 'name'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'language_id'); ?>
<?php echo $form->dropDownList($model, 'language_id', $languages); ?>
<?php echo $form->error($model, 'language_id'); ?>
    </div>

    <div class="row buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('default', 'Create') : Yii::t('default', 'Save')); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->